@extends('admin/layout')
@section('title','友情链接管理')
@section('content')
<!-- Content Header (Page header) -->
<section class="content-header">
  <h1>
    友情链接列表
    <small>添加友情链接</small>
  </h1>
  <ol class="breadcrumb">
  	<li><a href="{{asset('admin/index')}}"><i class="fa fa-th"></i> 管理首页</a></li>
    <li><i class="fa fa-users"></i> 友情链接管理</li>
    <li><a href="{{asset('admin/member')}}"><i class="fa fa-user"></i> 友情链接列表</a></li>
    <li class="active">添加友情链接</li>
  </ol>
</section>

<!-- Main content -->
<section class="content">
	<div class="row">
  @if(session('error'))
      {{session('error')}}
  @endif
  @if(count($errors) > 0)
            
      <div class="alert alert-danger">
          <ol>
              @foreach ($errors->all() as $error)
                  <li>{{$error}}</li>
              @endforeach
          </ol>
      </div>
  @endif
		<div class="col-md-12">
	  	  <!-- box start -->
          <div class="box box-info">
	        <div class="box-header with-border">
	          <h3 class="box-title"><i class="fa fa-user-plus"> 添加友情链接</i></h3>
	        </div>
            <!-- form start -->
            <form class="form-horizontal" action="{{asset('admin/frilink/insert')}}" method="post" enctype="multipart/form-data">
              {{csrf_field()}}
              <div class="box-body">
                <div class="form-group">
                  <label for="inputname" class="col-sm-2 col-md-2 control-label">友情链接名称：</label>
                  <div class="col-sm-6 col-md-5">
                    <input type="text" class="form-control" name="title" placeholder="请输入友情链接名称">
                  </div>
                  <span class="help-block col-sm-4 col-md-5">
                  </span>
                </div>

                <div class="form-group ">
                  <label for="inputtext" class="col-sm-2 col-md-2 control-label">URL：</label>
                  <div class="col-sm-6 col-md-5">
                    <input type="text" class="form-control" name="url" placeholder="请输入友情链接地址">
                  </div>
                  <span class="help-block col-sm-4 col-md-5">
                  </span>
                </div>
                <div class="form-group">
                  <label for="inputname" class="col-sm-2 col-md-2 control-label">友情链接描述：</label>
                  <div class="col-sm-6 col-md-5">
                    <input type="text" class="form-control" name="description" placeholder="请输入友情链接描述">
                  </div>
                  <span class="help-block col-sm-4 col-md-5">
                  </span>
                </div>

                <div class="form-group">
                  <label for="inputpic" class="col-sm-2 col-md-2 control-label">上传链接图片：</label>
                  <div class="col-sm-10 col-md-10">
                    <input type="file" class="" id="inputpic" name="pic">
                  </div>
                  <span class="help-block col-sm-10 col-sm-offset-2 col-md-10 col-md-offset-2">
                  </span>
                </div>
                
              <div class="box-footer">
                <button class="btn btn-default col-sm-2 col-sm-offset-2 col-md-2 col-md-offset-2">清空</button>
                <button class="btn btn-info col-xs-offset-1 col-sm-2 col-sm-offset-1 col-md-2 col-md-offset-1">提交</button>
              </div>
            </form>
            <!-- /.form -->
          </div>
          <!-- /.box -->
	    </div>
    </div>
</section>
<!-- /.content -->
@stop